package net.flyinggroup.actuator;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.ReactiveHealthIndicator;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

@Component
public class BatteryHealthIndicator implements ReactiveHealthIndicator {

    /**
     * Provide the indicator of health.
     *
     * @return a {@link Mono} that provides the {@link Health}
     */
    @Override
    public Mono<Health> health() {
        return Mono.just(Health.up().build());
    }
}
